package data_treating

import (
	"os"
)

const (
	normalPictureDir   = "file"
	abnormalPictureDir = "abnormal"
	TimeFormat         = "2006-01-02-15"
	DateTimeFormat     = "2006-01-02 15:04:05"
	DateFormat         = "2006-01-02"
)

// 判断文件或文件夹是否存在
func pathExists(path string) (bool, error) {
	_, err := os.Stat(path)
	if err == nil {
		return true, nil
	}
	if os.IsNotExist(err) {
		return false, nil
	}
	return false, err
}
